package hngc.com;

import java.util.Scanner;

public class Box14 {
    public static void main(String[] args) {
        int a=0;
        int b=0;
        int x=0;
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入a值");
        while (scanner.hasNext()){
            try {
                a=scanner.nextInt();
                System.out.println("输入b值");
                b=scanner.nextInt();
                break;
            }catch (Exception e){
                System.out.println("输入不符合规范");
                return;
            }
        }
        System.out.println(a+b);
        if(a>9&&b>5){
            x=a*a*b;
            System.out.println("x=a*a*b的值:"+x);
        }else {
            if(a<0&&b<0){
                x=a-b;
                System.out.println("x=a-b的值:"+x);
            }else {
                x=a+b;
                System.out.println("x=a+b的值:"+x);
            }
        }
        scanner.close();
    }
}
